package com.wk.controller;

import lombok.extern.slf4j.Slf4j;
import org.apache.shiro.authz.annotation.RequiresRoles;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;

@Slf4j
public class ShiroTestController {

    @RequestMapping(value = "/index")
    @RequiresRoles("admin")
    public String index(HttpServletRequest request, Model model) {
        log.info("进入项目管理首页...");
        return "index";
    }
}
